package com.felix.repository;

import com.felix.entity.Customer;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * CustomerRepository
 *
 * @author xuejinhua
 * @date 2018/9/4 15:23
 */
@Repository
public interface CustomerRepository extends MongoRepository<Customer, String> {

    Customer findByFirstName(String firstName);

    List<Customer> findAllByLastName(String lastName);
}
